<template>
  <div>
    <el-button type="info" @click="loginOut">注销</el-button>
  </div>
</template>

<script>
  export default {
    name: 'Home',
    methods:{
      loginOut(){
        //清空session
        window.sessionStorage.clear();
        //编程式导航跳转
        this.$router.push('/login');
      }
    }
  }
</script>

<style scoped>

</style>
